NAVIÉ

FXServer

FXServer

The FXServer holds all Effex Scenes available in a Cinema 4D scene and executes them.
You can retrieve the FXServer like this:

FXAPI::FXServer* server = FXAPI::FXServer::Get(doc);


const int GetSceneCount (void)


Returns
the amount of scenes available in the current Cinema 4D scene.

const int GetActiveSceneCount (void)


Returns
the amount of active Effex Scenes.

FXScene* GetEffexScene(BaseObject* node)


Returns
The Effex Scene associated with the passed node interface. Returns nullptr if scene was not found.

Parameters
BaseObject* node: The Effex Scene node interface

FXParticleGroup* GetParticleGroup(BaseObject* node)


Returns
The particle group associated with the passed node interface. Returns nullptr if group was not found.

Parameters
BaseObject* node: The particle group node interface

const FXParticleGroup* GetParticleGroup(BaseObject* node)


Returns
The particle group associated with the passed node interface. Returns nullptr if the particle group was not found.

Parameters
BaseObject* node: The particle group node interface

void GetConstraints(InExcludeData* filter, std::vector*>& result)


Returns
none

Parameters
InExcludeData* filter:
a list of constraint node interfaces to retrieve from any Effex Scene.

std::vector& result:
filled with all found constraints

static FXServer* Get(BaseDocument* do)


Returns
The FXServer in the passed BaseDocument

Parameters
BaseDocument* doc:
The document to retrieve the FXServer from